@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/tbuser/tbuser.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">用户列表</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="userName" class="layui-input" type="text" placeholder="请输入账号/用户名称/所属公司"/>
                            </div>
                            <div class="layui-inline">
                                <select name="status" lay-filter="status" id="status">
                                    <option value="">全部</option>
                                    <option value="1">艺人</option>
                                    <option value="2">公司</option>
                                    <option value="3">经纪人</option>
                                </select>
                            </div>
                            <div class="layui-inline">
								<input id="timeLimit" class="layui-input" type="text"
									placeholder="日期" />
							</div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>查询
                                </button>
                               	@if(shiro.hasPermission("/modular/user/export")){
								<button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
								@}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="baseTable" lay-filter="baseTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="toolBtn">
    @if(shiro.hasPermission("/modular/tbuser/select")){
         <a class="layui-btn layui-btn-primary layui-btn-yes-c  layui-btn-xs" lay-filter="details" id="details" data-id="{{ d.user_id}}">详情</a>
	@}
    @if(shiro.hasPermission("/modular/tbuser/audit")){
	 {{# if(d.userStatus == 0){  }}
           <a class="layui-btn layui-btn-primary layui-btn-yes layui-btn-xs" lay-filter="adopt" id="adopt" data-id="{{ d.user_id}}" data-name="1">启用</a>
     {{# }}}
	 {{# if(d.userStatus == 1){  }}
           <a class="layui-btn layui-btn-primary layui-btn-yes-d layui-btn-xs" lay-filter="adopt" id="adopt" data-id="{{ d.user_id}}" data-name="0">停用</a>
     {{# }}}
	@}
    @if(shiro.hasPermission("/modular/tbuser/title")){
	 {{# if(d.title_status == 0){  }}
           <a class="layui-btn layui-btn-primary layui-btn-no layui-btn-xs" id="sealup" filter="sealup" data-id="{{ d.user_id}}" data-name="1">封号</a>
     {{# }}}
	 {{# if(d.title_status == 1){  }}
           <a class="layui-btn layui-btn-primary layui-btn-no layui-btn-xs" class="disabled" data-id="{{ d.user_id}}" data-name="1">已封号</a>
     {{# }}}
	@}
</script>
@}